package com.zzq.provider.bean;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * @Author zzq
 * @Date 2020/2/26 17:34
 * @Version 1.0
 */
@Entity
@Data
@JsonIgnoreProperties({"hibernateLazyInitializer","handler","findhandler"})
public class Student implements Serializable {
    private static final long serialVersionUID = -6775350462875492370L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    private String name;
    private Integer age;
}
